import { Component } from '@angular/core';
import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
import { DeletionModalComponent } from './deletion-modal/deletion-modal.component';
import { Router } from '@angular/router'
import { HttpClient } from '@angular/common/http'
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.sass']
})
export class AppComponent {

  posts: any;
 constructor(private router:Router, private http:HttpClient){

    }
    gotoPage(pageName:string):void{
        this.router.navigate([`${pageName}`]);
    }
  title = 'exam-perkin-elmer';
  getList() {
      this.posts = this.http.get('http://localhost:8000/equipments')
    }
}
